package edu.arhs.team1100.gamename.main;

public class ScoutingMain {

    public static void main(String[] args) {
        String argAddress = "", argUsername = "", argPassword = "";

        if (args.length != 0) {
            for (int i = 0; i < args.length; i += 2) {
                if (args[i].equals("-ip")) {
                    argAddress = args[i + 1];
                } else if (args[i].equals("-u")) {
                    argUsername = args[i + 1];
                } else if (args[i].equals("-p")) {
                    argPassword = args[i + 1];
                }
            }
            new Client(argUsername, argPassword, argAddress).run();

        } else {
            new Client().run();
        }
    }
}